
import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
    state: {
        identity: 0, /* 0.用户  1.司机  2.搬运工    3.安装工 */
        orderTabIndex: 0
    },
    mutations: {
        changeOrderTabIndex(state, index) {
            state.orderTabIndex = index
        },
        changeIdentity(state, identity) {
            state.identity = identity
        }
    },
});

